<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use Faker\Generator as Faker;

$factory->define(App\Video::class, function (Faker $faker) {
    return [
        'club_id' => $faker->numberBetween(1, 5),
        'admin_id' => $faker->numberBetween(1, 5),
        'status' => $faker->numberBetween(0, 2),
        'videos' => [(object)[
            'videoName' => $faker->realText(10, 2) . '.mp4',
            'path' => '/storage/vidoes/' . $faker->md5 . '.mp4',
            'mimeType' => 'video/mp4',
            'size' => $faker->numberBetween(1000, 100000000),
            'active' => true
        ],
            (object)[
                'videoName' => $faker->realText(10, 2) . '.mp4',
                'path' => '/storage/vidoes/' . $faker->md5 . '.mp4',
                'mimeType' => 'video/mp4',
                'size' => $faker->numberBetween(1000, 100000000),
                'active' => false
            ]
        ],
        'title' => $faker->realText(50, 3),
        'intro' => $faker->realText(100, 3),
        'price' => $faker->randomFloat(2,0,100),
        'published_at' => now()
    ];
});
